home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19970626-19970929
/
000316_news@newsmaster….columbia.edu _Mon Sep 8 13:09:01 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-09-28
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA06962
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 8 Sep 1997 13:08:59 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA10671
for kermit.misc@watsun; Mon, 8 Sep 1997 13:08:58 -0400 (EDT)
Path: news.columbia.edu!sol.ctr.columbia.edu!news.indiana.edu!vixen.cso.uiuc.edu!news-peer.sprintlink.net!news.sprintlink.net!Sprint!newsfeed.nacamar.de!oleane!calvacom!not-for-mail
From: do11@calva.net (Dominique Ottello)
Newsgroups: comp.protocols.kermit.misc
Subject: It is not a bug but a suggestion for improvement of MSK315
Date: Mon, 08 Sep 1997 15:19:28 GMT
Organization: PCatHome&Me
Lines: 49
Message-ID: <3412651b.3423267@news.calvacom.fr>
Reply-To: do11@calva.net
NNTP-Posting-Host: par26.calvacom.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.5/32.451
Xref: news.columbia.edu comp.protocols.kermit.misc:7639
I have a suggestion for improvement of MSK315 :
There are two different variables that give result of input and minput
command :
\v(instatus)
Status of most recent INPUT or MINPUT command:
-1 for not initialized yet
0 for success
1 for timed out
2 for user level Control-C interrupt
4 for connection lost
\v(minput)
Shows which search pattern was matched by the MINPUT command, which
is a script INPUT command with one or more match patterns. The
variable is 0 if no match was obtained.
If \v(instatus) is more than 0 it is failure
if \v(minput) is more than 0 it is success
It is not coherent.
I suggest that \v(minput) not only gives the matched pattern but also gives
the status of the command :
-4 Connection Lost
-3 User Level Control-C interrupt
-2 Timed Out
-1 Not initialized yet
0 No match
1 ..... XX number of matched pattern
With this, only one switch structure is sufficient to test all cases :
Switch \v(minput) {
:-4,management of connection lost,break
:-3,management of User Interrupt,break
:-2,management of Timeout,break
:-1,management of not initialized,break
:0,management of no match,break
:1,management of match 1,break
:2.........
}
Comments please.
Best regards,
== Dominique Ottello == do11@calva.net == Paris == France ==